System.Collections.IList.Insert Method

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Insert a new item at the given index.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
private void IList.Insert(
	int index,
	Object value
)
Visual Basic (Declaration)
Private Sub System.Collections.IList.Insert ( _
	index As Integer, _
	value As Object _
) Implements IList.Insert
Visual C++
private:
virtual void System.Collections.IList.Insert (
	int index, 
	Object^ value
) sealed = IList::Insert

Parameters

index
Int32
The index in the list to insert the item at. After the insertion, the inserted item is located at this index. The first item in the list has index 0.
value
Object
The item to insert at the given index.

Exceptions

ExceptionCondition
System..::ArgumentOutOfRangeExceptionindex is less than zero or greater than Count.
System..::ArgumentExceptionvalue cannot be converted to T.

See Also